﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpages/Goods_Order.Master"
    AutoEventWireup="true" CodeBehind="Goods_Order.aspx.cs" Inherits="Project.Master.Goods_Order" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style4
        {
            width: 347px;
        }
        .style6
        {
            width: 235px;
        }
        .style8
        {
            width: 232px;
        }
        .style9
        {
            width: 346px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server">
                        </asp:ToolkitScriptManager>
        <asp:Panel ID="Panel2" runat="server" BorderColor="AliceBlue" BorderStyle="Solid"
        BorderWidth="2px" Width="263px" Height="120px" BackColor="#999999" 
                HorizontalAlign="Center">
        <table class="style1">
            <tr align="center">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    onselectedindexchanged="GridView1_SelectedIndexChanged" 
                    onrowcommand="GridView1_RowCommand">
                    <Columns>
                        <asp:BoundField DataField="Employee_ID" HeaderText="รหัสพนักงาน" 
                            HtmlEncode="True" />
                        <asp:BoundField DataField="FirstName" HeaderText="ชื่อ" HtmlEncode="True" />
                        <asp:BoundField DataField="LastName" HeaderText="นามสกุล" HtmlEncode="True" />
                        <asp:TemplateField  HeaderText="เลือก">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkChoose" CommandName="cmdChoose" 
                                    CommandArgument='<%#Eval("Employee_ID") %>' runat="server" Text="ใช้รหัส" ></asp:LinkButton> 
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </tr>
            
        </table>
    </asp:Panel>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="style1">
                <tr>
                    <td class="style9" align="right">
                        
                        <asp:Label ID="Label1" runat="server" Text="เลขที่เอกสาร:"></asp:Label>
                    </td>
                    <td class="style6">
                        <asp:TextBox ID="txtIDGen" runat="server" Style="margin-left: 0px" 
                            Width="220px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Button ID="BT_RunID" runat="server" OnClick="BT_RunID_Click" 
                            Text="Run ID" />
                    </td>
                </tr>
                <tr>
                    <td class="style9">
                        &nbsp;</td>
                    <td class="style6">
                        <asp:HiddenField ID="HdfNO" runat="server" />
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
        </ContentTemplate>
        
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="BT_RunID" EventName="Click" />
        </Triggers>
        
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <table class="style1">
                <tr>
                    <td align="right" class="style4">
                        <asp:Label ID="Label2" runat="server" Text="ผู้ทำรายการ:"></asp:Label>
                    </td>
                    <td class="style8">
                        <asp:TextBox ID="txtfindEmpID" runat="server" Height="22px" Width="220px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Button ID="btSeachIDEmp" runat="server" OnClick="btSeachIDEmp_Click" Text="ค้นหารหัส" />

                        <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btSeachIDEmp" BackgroundCssClass="modalBackground"
                            PopupControlID="Panel2" DropShadow="True" >
                        </asp:ModalPopupExtender>
                    </td>
                </tr>
                <tr>
                    <td class="style4">
                        &nbsp;
                    </td>
                    <td class="style8">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="BT_RunID" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
